<template>
    <page-body>
        <view class="page">
            <view class="flex align-stretch benben-position-layout flex myReview_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex align-center justify-between flex-sub myReview_fd0_0'>
                    <view class='flex align-center myReview_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
                        <text class='fu-iconfont2  myReview_fd0_0_c0_c0'>&#xE794;</text>
                    </view>
                    <text class='myReview_fd0_0_c1'>我的评价</text>
                    <view class='flex align-center myReview_fd0_0_c0'>
                    </view>
                </view>

            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
            <!---flex布局flex布局开始-->
            <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myReview_flex_1">
                <template v-for='(item,key0) in list'>
                    <view class='flex flex-wrap align-center myReview_fd1_0' :key='key0'>
                        <image class='self-start myReview_fd1_0_c0' mode="aspectFill" :src='item.avatar'></image>
                        <view class='flex flex-direction flex-wrap align-stretch flex-sub'>
                            <view class='flex flex-direction flex-wrap align-stretch flex-sub'>
                                <view class='flex flex-wrap align-center myReview_fd1_0_c1_c0_c0'>
                                    <text class='flex-sub myReview_fd1_0_c1_c0_c0_c0'>{{item.user_real_name}}</text>
                                    <text class='myReview_fd1_0_c1_c0_c0_c1'>{{item.create_time}}</text>
                                </view>
                                <view class='flex flex-wrap align-center' v-if="item.order_type == 1">
                                    <text class='myReview_fd1_0_c1_c0_c1_c0'>商家</text>
                                    <view class='flex flex-wrap align-center'>
                                        <template v-for="starNum in [1,2,3,4,5]">
                                            <image v-if="item.store_score >= starNum" :key="starNum" class='myReview_star1fd1_0_c1_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"133.png"'></image>
                                            <image v-else :key="starNum" class='myReview_star1fd1_0_c1_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"134.png"'></image>
                                        </template>
                                    </view>
                                    <text class='myReview_fd1_0_c1_c0_c1_c2'>态度</text>
                                    <text class='myReview_fd1_0_c1_c0_c1_c3'>{{item.store_service_score}}</text>
                                    <text class='myReview_fd1_0_c1_c0_c1_c3'>星</text>
                                    <text class='myReview_fd1_0_c1_c0_c1_c2'>口味</text>
                                    <text class='myReview_fd1_0_c1_c0_c1_c3'>{{item.store_dishes_score}}</text>
                                    <text class='myReview_fd1_0_c1_c0_c1_c3'>星</text>
                                    <text class='myReview_fd1_0_c1_c0_c1_c2' v-if="item.send_mode == 'takeout'">配送</text>
                                    <text class='myReview_fd1_0_c1_c0_c1_c3' v-if="item.send_manyi == 1 && item.send_mode == 'takeout'">满意</text>
                                    <text class='myReview_fd1_0_c1_c0_c1_c3' v-if="item.send_manyi == 0 && item.send_mode == 'takeout'">不满意</text>
                                </view>
								<view class='flex flex-wrap align-center' v-if="item.order_type == 2">
								    <text class='myReview_fd1_0_c1_c0_c1_c0'>骑手</text>
								    <view class='flex flex-wrap align-center'>
								        <template v-for="starNum in [1,2,3,4,5]">
								            <image v-if="item.rider_send_star >= starNum" :key="starNum" class='myReview_star1fd1_0_c1_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"133.png"'></image>
								            <image v-else :key="starNum" class='myReview_star1fd1_0_c1_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"134.png"'></image>
								        </template>
								    </view>
								   
								</view>
                            </view>
                            <text class='myReview_fd1_0_c1_c1'>{{item.content}}</text>
                            <view class='flex flex-wrap align-center' v-if="item.order_type == 1">
                                <template v-for='(child,key1) in item.thumb'>
                                    <view class='flex flex-wrap align-center myReview_fd1_0_c1_c2_c0' :key='key1'>
                                        <image class='myReview_fd1_0_c1_c2_c0_c0' mode="aspectFill" :src='child' @tap.stop="multiImagePreview(child,item.thumb,'')"></image>
                                    </view>
                                </template>

                            </view>
                            <view class='flex flex-wrap align-center myReview_fd1_0_c1_c3' @tap.stop="handleJumpDiy" data-type="navigateTo" 
							:data-url="`/pages/inSchool/dpDetails/dpDetails?aid=${item.store_id}`" v-if="item.store_id">
                                <image class='myReview_fd1_0_c1_c3_c0' mode="aspectFill" :src='item.logo'></image>
                                <text class='flex-sub myReview_fd1_0_c1_c3_c1'>{{item.userstore_name}}</text>
                                <image class='myReview_fd1_0_c1_c3_c2' mode="aspectFit" :src='STATIC_URL+"38.png"'></image>
                            </view>
                            <view class='flex flex-wrap align-center justify-end myReview_fd1_0_c1_c4'>
                                <image class='myReview_fd1_0_c1_c4_c0' mode="aspectFit" :src='STATIC_URL+"87.png"' @tap.stop="shanchuFunc(item.aid)"></image>
                                <text class='myReview_fd1_0_c1_c4_c1' @tap.stop="shanchuFunc(item.aid)">删除</text>
                            </view>
                        </view>
                    </view>
                </template>
                <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
            </view>

            <!---flex布局flex布局结束-->
            <benben-popup v-model="popupShow1719213480757" :mask="true" :mask-close-able="true" mode='center'>
                <!---二次确认框flex布局开始-->
                <view class="flex flex-direction align-center benben-flex-layout myReview_flex_2">
                    <view class='flex flex-wrap align-center'>
                        <text class='myReview_fd2_0_c0'>提示</text>
                    </view>
                    <text class='myReview_fd2_1'>确定删除此评论吗？</text>
                    <view class='flex align-stretch myReview_fd2_2'>
                        <view class='flex flex-direction flex-wrap align-center self-center justify-center myReview_fd2_2_c0' @tap.stop="popupShow1719213480757 = false">
                            <text class='myReview_fd2_2_c0_c0'>取消</text>
                        </view>
                        <view class='flex flex-direction flex-wrap align-center self-center justify-center myReview_fd2_2_c1' @tap.stop="post646b299c62ac1">
                            <text class='myReview_fd2_2_c1_c0'>确定</text>
                        </view>
                    </view>
                </view>

                <!---二次确认框flex布局结束-->

            </benben-popup>


        </view>
    </page-body>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
    import {
        validate
    } from '@/common/utils/validate.js'

    export default {
        components: {},
        mixins: [pagingList],

        data() {
            return {
                "popupShow1719213480757": false,
                "fd1_0_c1_c0_c1_c1": 2,
                "minixPagingListsApi": "",
                "pageingListApiMethod": "",
                "allowOnloadGetList": false,
                "list": [],
                "aid": "",
				postType:false,
            };
        },
        computed: {

        },
        watch: {},
        onLoad(options) {

        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {
            this.getyl46b40fc20c31Func()
        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
            //查询评价列表
            getyl46b40fc20c31Func() {
                this.minixPagingListsApi = global.apiUrls.post646b40fc20c31;
                this.pageingListApiMethod = 'get';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {}
                this.listData = [];
                this.list = this.listData;
                this.pagingListToggle();

            },
            //删除
            shanchuFunc(aid) {
                this.aid = aid;
                this.popupShow1719213480757 = true;
            },
			async post646b299c62ac1(){
				if(this.postType){
					return
				}
				this.postType = true
				this.popupShow1719213480757 = false
				let datauser = await this.$api.post(global.apiUrls.post646b299c62ac1, {
					aid:this.aid,
				});
				if (datauser.data.code != 1) {
					this.$message.info(datauser.data.msg);
					this.postType = false
				    return
				}
				this.$message.info('删除成功！');
				setTimeout(() => {
					this.getyl46b40fc20c31Func()
					this.postType = false
				}, 500)
			},
            pagingListPostData() {
                return this.pagingListPostDataContent
            }
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: #fff;
        background-size: 100% auto;
    }

    .myReview_flex_0 {
        border-bottom: 1px solid #eee;
        width: 750rpx;
        height: 88rpx;
        overflow: hidden;
        z-index: 5;
        top: 0rpx;
		background: #fff;
    }

    .myReview_fd0_0_c1 {
        color: #333333;
        font-size: 36rpx;
        font-weight: 500;
        line-height: 50rpx;
    }

    .myReview_fd0_0_c0_c0 {
        font-size: 32rpx;
        font-weight: 500;
        color: var(--benbenFontColor0);
    }

    .myReview_fd0_0_c0 {
        width: 180rpx;
        height: 88rpx;
    }

    .myReview_fd0_0 {
        padding: 0rpx 32rpx 0rpx 32rpx;
        height: 88rpx;
    }

    .myReview_flex_1 {
        padding: 0rpx 32rpx 0rpx 32rpx;
    }

    .myReview_fd1_0_c1_c4_c1 {
        color: #999999;
        font-size: 24rpx;
        font-weight: 400;
        line-height: 33rpx;
        text-align: center;
        font-style: normal;
    }

    .myReview_fd1_0_c1_c4_c0 {
        width: 24rpx;
        height: 24rpx;
        margin: 0rpx 16rpx 0rpx 0rpx;
    }

    .myReview_fd1_0_c1_c4 {
        margin: 0rpx 0rpx 24rpx 0rpx;
    }

    .myReview_fd1_0_c1_c3_c2 {
        width: 12rpx;
        height: 20rpx;
    }

    .myReview_fd1_0_c1_c3_c1 {
        color: #333333;
        font-size: 32rpx;
        font-weight: 700;
        line-height: 45rpx;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        text-align: left;
        font-style: normal;
    }

    .myReview_fd1_0_c1_c3_c0 {
        width: 72rpx;
        height: 72rpx;
        border-radius: 8rpx;
        margin: 0rpx 16rpx 0rpx 0rpx;
    }

    .myReview_fd1_0_c1_c3 {
        background: rgba(246, 247, 249, 1);
        background-size: 100% auto;
        border-radius: 8rpx;
        padding: 24rpx 24rpx 24rpx 24rpx;
        margin: 0rpx 0rpx 24rpx 0rpx;
    }

    .myReview_fd1_0_c1_c2_c0_c0 {
        width: 196rpx;
        height: 196rpx;
        border-radius: 8rpx;
    }

    .myReview_fd1_0_c1_c2_c0 {
        margin: 0rpx 2rpx 24rpx 2rpx;
    }

    .myReview_fd1_0_c1_c1 {
        color: #333333;
        font-size: 28rpx;
        font-weight: 500;
        line-height: 40rpx;
        margin: 24rpx 0rpx 16rpx 0rpx;
    }

    .myReview_fd1_0_c1_c0_c1_c3 {
        color: #333333;
        font-size: 24rpx;
        font-weight: 400;
        line-height: 33rpx;
    }

    .myReview_fd1_0_c1_c0_c1_c2 {
        color: #999999;
        font-size: 24rpx;
        font-weight: 400;
        line-height: 33rpx;
        margin: 0rpx 8rpx 0rpx 24rpx;
    }

    .myReview_star1fd1_0_c1_c0_c1_c1 {
        height: 18rpx;
        margin: 0rpx 4rpx 0rpx 0rpx;
        width: 18rpx;
    }

    .myReview_star1fd1_0_c1_c0_c1_c1 {
        width: 18rpx;
        height: 18rpx;
        margin: 0rpx 4rpx 0rpx 0rpx;
    }

    .myReview_fd1_0_c1_c0_c1_c0 {
        color: #999999;
        font-size: 24rpx;
        font-weight: 400;
        line-height: 33rpx;
        margin: 0rpx 8rpx 0rpx 0rpx;
    }

    .myReview_fd1_0_c1_c0_c0_c1 {
        color: #999999;
        font-size: 24rpx;
        font-weight: 400;
        line-height: 33rpx;
    }

    .myReview_fd1_0_c1_c0_c0_c0 {
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        margin: 0rpx 20rpx 0rpx 0rpx;
        color: #333333;
        font-size: 28rpx;
        font-weight: 400;
        line-height: 40rpx;
    }

    .myReview_fd1_0_c1_c0_c0 {
        margin: 0rpx 0rpx 22rpx 0rpx;
    }

    .myReview_fd1_0_c0 {
        width: 56rpx;
        height: 56rpx;
        border-radius: 28rpx;
        margin: 0rpx 14rpx 0rpx 0rpx;
    }

    .myReview_fd1_0 {
        border-bottom: 1px solid #eee;
        padding: 32rpx 0rpx 0rpx 0rpx;
    }

    .myReview_flex_2 {
        background: rgba(255, 255, 255, 1);
        border-radius: 16rpx 16rpx 16rpx 16rpx;
        padding: 40rpx 0rpx 0rpx 0rpx;
        width: 540rpx;
    }

    .myReview_fd2_2_c1_c0 {
        color: #ED702D;
        font-size: 32rpx;
        font-weight: 500;
    }

    .myReview_fd2_2_c1 {
        width: 50%;
        height: 110rpx;
    }

    .myReview_fd2_2_c0_c0 {
        color: #999999;
        font-size: 32rpx;
        font-weight: 500;
        text-align: center;
    }

    .myReview_fd2_2_c0 {
        border-right: 1px solid #eee;
        width: 50%;
        height: 110rpx;
        text-align: center;
    }

    .myReview_fd2_2 {
        border-top: 1px solid #eee;
        width: 100%;
    }

    .myReview_fd2_1 {
        line-height: 44rpx;
        font-size: 28rpx;
        font-weight: 400;
        color: var(--benbenFontColor0);
        margin: 40rpx 0rpx 50rpx 0rpx;
    }

    .myReview_fd2_0_c0 {
        color: #333333;
        font-size: 36rpx;
        font-weight: 500;
    }
</style>